class Person {

    sayHi () {
        console.log(this);
    }

}

const p = new Person();

p.sayHi(); // p
